Skip to content

Log run metadata to a shared directory#97

Open
nbtm-sh wants to merge 2 commits into
masterfrom
log-metrics
Open

Log run metadata to a shared directory#97
nbtm-sh wants to merge 2 commits into
masterfrom
log-metrics

Conversation

@nbtm-sh

@nbtm-sh nbtm-sh commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

This change adds visibility into what modes users run and what inputs are passed in.

The functionality is enabled by default but can be disabled by setting the ENABLE_METRICS environment variable to false.

A single JSON file is created per run, and is saved to /srv/scratch/sbf-pipelines/metrics/${YEAR}/${MONTH}/${DATE_TIME_ISO}-${USER}-${JOB_ID}.json. Example: /srv/scratch/sbf-pipelines/metrics/2026/06/2026-06-05T16:23:08Z+1000-z3545907-8206526.kman.restech.unsw.edu.json

A new file is created per run to avoid issues arising in the very small chance that two users write to the same metrics file at the same time. Organising the data by year/month also makes collection of the metrics easier.

I plan to modify my Discworld generate-metrics script to a generate monthly statistics for Protinfold.

@nbtm-sh nbtm-sh requested a review from jscgh June 5, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants